package com.hlxt.nj.busi.service.impl;

import com.hlxt.nj.busi.dao.TUserCouDAO;
import com.hlxt.nj.busi.model.TUserCou;
import com.hlxt.nj.busi.model.TUserCouCriteria;
import com.hlxt.nj.busi.service.UserCouService;
import com.hlxt.nj.common.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserCouServiceImpl implements UserCouService {

    @Autowired
    private TUserCouDAO tUserCouDAO;

    @Override
    public void selectPageBeanByExample(TUserCouCriteria example, PageBean pageBean) {

        tUserCouDAO.selectPageBeanByExample(example,pageBean);
    }

    @Override
    public boolean insert(TUserCou tUserCou) {
        try{
            tUserCouDAO.insert(tUserCou);
            return true;
        }catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }
}
